<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
	<title> </title>
	<link href="{ROOT}/adminarea/template/style.css" rel=
	      "stylesheet" type="text/css" media="screen">
    </head>
    <body>
		{js}
	<script type="text/javascript">
	    var lroot = '{ROOT}';
	    function sh(elem, addDiv){
		$('#' + elem).slideToggle('slow');
		if ($(addDiv).attr('class') == 'down'){
		    $(addDiv).attr({'class':'up'}).html('&uarr;');
		} else {
		    $(addDiv).attr({'class':'down'}).html('&darr;');
		}
	    }
	    function hideall(){
		$('.blockcont').each(function(n,element){
		    $(element).slideUp('slow');
		});
	    }
	    function showall(){
		$('.blockcont').each(function(n,element){
		    $(element).slideDown('slow');
		});
	    }
	    function nav(link,ttl){
		parent.main.location.href = lroot + 'adminarea/?do=' + link;

		return false;
	    }
	    $(document).ready(function(){
		var root = $('#draggable');
		$('> *', root).each(function (index) {
		    this.id = 'item-' + index;
		});


		var c = $.cookies.get('sortable');
		if (c) {
		    $.each(c.split('&'), function () {
			var id = this.replace('[]=', '-');
			$('#' + id).appendTo(root);
		    });
		    $.cookies.set('am_ui_sortable', c);
		}

		$("#draggable").sortable({
		    update : function () {//здесь делаем действие, которое нам нужно, например аяксовый вызов сохранения
			//$('#draggable').sortable('serialize');
			var order = $(this).sortable('serialize');
			$.cookies.set('sortable', order);
		    }
		});
		    
		$('a').click(function(){
		    if (this.target == '_blank') return;
		    if (this.target == '_top') return;
		    var hr = window.parent.splitAddress(this.href.toString());
		    window.parent.navAnchor(hr[1]);
		    return false;
		});
	    });
	</script>
	<center>
	    <img style="margin-top:10px;" alt="Aurus CMS" align="middle" width="98%" border="0" src="{ROOT}/adminarea/template/images/logo.gif" onclick="window.parent.navAnchor('')" />
	    <br />{top}<br />
	    <span class="a" onclick="hideall()">{hideall}</span> |
	    <span class="a" onclick="showall()">{showall}</span>
	</center>
	<br />
	<div id="draggable">
		{content}
	</div>
	<center><span style="color:#b9b9b9">Aurus {VERSION}</span></center>
    </body>
</html>